package com.demo2do.boyle.client.service;

import java.util.List;

import com.demo2do.boyle.common.entity.customer.wallet.Wallet;
import com.demo2do.boyle.common.entity.customer.wallet.WalletRecord;
import com.demo2do.core.service.GenericService;
import com.demo2do.core.web.resolver.Page;

/**
 * 
 * @author Wilson
 */
public interface WalletService extends GenericService<Wallet> {

    /**
     * 
     * @param customer
     * @return
     */
    public Wallet load(Integer customerId);

    /**
     * 
     * @param wallet
     * @return
     */
    public List<WalletRecord> listRecords(Wallet wallet, Page page);
    
    /**
     * 
     * @param wallet
     * @param withdrawal
     * @return
     */
    public void updateWalletFrozenAmount(Wallet wallet,Integer money);

}
